package com.entity.view;/*
 *
 *作者：张继成
 *任务：后端返回的实体实体辅助类
 *
 *备注：
 *@Date2023/06/01/21:56
 ***/

import com.baomidou.mybatisplus.annotations.TableName;
import com.entity.SystemintroEntity;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

@TableName("systemintro")
@Data
public class SystemintroView extends SystemintroEntity implements Serializable {
    private static final long seriaVersionUID=1L;

    public SystemintroView(){
    }

    //捕获异常
    public SystemintroView(SystemintroEntity systemintroEntity){
        try {
            BeanUtils.copyProperties(this, systemintroEntity);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

}
